﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="AdvanceSearchResult.aspx.cs" Inherits="EWDTAssignment.AdvanceSearchResult" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<p>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="advSearchList" 
        TypeName="EWDTAssignment.App_Code.DBManager">
        <SelectParameters>
            <asp:QueryStringParameter Name="pn" QueryStringField="Name"
                Type="String" />
            <asp:QueryStringParameter Name="cat" QueryStringField="Category"
                Type="String" />
            <asp:Parameter Name="pri" Type="Decimal" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="ObjectDataSource1" Height="375px" Width="598px">
        <Columns>
            <asp:TemplateField HeaderText="ProdImg">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("ProdImg") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:ImageButton ID="Image1" runat="server" Height="38px" 
                        ImageUrl='<%# Eval("ProdImg", "{0}") %>' 
                                PostBackUrl='<%# String.Format("~/ProductInfo.aspx?ProductID={0}", Eval("ProductId")) %>' 
                                Width="108px" />
                </ItemTemplate>
            </asp:TemplateField>
          <asp:BoundField DataField="ProductName" HeaderText="ProductName" 
                SortExpression="ProductName" />
            <asp:BoundField DataField="Category" HeaderText="Category" 
                SortExpression="Category" />
            <asp:BoundField DataField="Description" HeaderText="Description" 
                SortExpression="Description" />
            <asp:BoundField DataField="Price" HeaderText="Price" SortExpression="Price" />
            <asp:BoundField DataField="Quantity" HeaderText="Quantity" 
                SortExpression="Quantity" />
        </Columns>
    </asp:GridView>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
</asp:Content>

